In Gravity Forms 1.5 we're adding some new "Ready Classes". Using these new classes, you can easily create more advanced alternative layouts for the fields in your forms.
Essentially, Ready Classes are class names that you can add to the parent element surrounding each field to take advantage of pre-defined styles included in the default form stylesheet.
How to Use Ready Classes
To add a Ready Class to a field, just edit your form in the Form Builder and then select the field you want to add the classes to. Under the "Advanced" tab, you’ll see an input called "CSS class name". Add the Ready Class name or names you want to add to the field here and then save the form.
Please note that this feature does NOT update live in the Form Builder. After you specify your Ready Class names, just save the form and you’ll see the classes being applied to your form in the preview window and on the live site.
The Ready Class Names
Here are the Ready Classes that are built in the Gravity Forms default stylesheet that you can use right away without having to write any of your own CSS.
Halves (2 Columns)
Note: These only work with the "top label" form layout option.
gf_left_half
This places the field in the left column (left half) of a 2 column layout. This only work with the "top label" form layout option.
gf_right_half
This places the field in the left column (right half) of a 2 column layout. This only work with the "top label" form layout option.
To align two fields side by side (2 equal columns) you can add these classes. The two fields have to be adjacent to each other in the Form Builder. The gf_left_half class has to be added to the first field and the gf_right_half class to the second field.
Example:

Thirds (3 Columns)
gf_left_third
This places the field in the left column (left third) of a 3 column layout. This only work with the "top label" form layout option.
gf_middle_third
This places the field in the middle column (middle third) of a 3 column layout. This only work with the "top label" form layout option.
gf_right_third
This places the field in the right column (right third) of a 3 column layout. This only work with the "top label" form layout option.
To align three fields side by side (3 equal columns) you can add these classes. The three fields have to be adjacent to each other in the Form Builder. The gf_left_third class has to be added to the first field, the gf_middle_third class to the second field and the gf_right_third class to the third field.
Example:

List Classes
gf_list_2col
This turns a multiple choice/checkbox list into an equally-spaced 2 column format. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_3col
This turns a multiple choice/checkbox list into an equally-spaced 3 column format. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
Example:

gf_list_4col
This turns a multiple choice/checkbox list into an equally-spaced 4 column format. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_5col
This turns a multiple choice/checkbox list into an equally-spaced 5 column format. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_inline
This turns a multiple choice/checkbox list into an inline horizontal list (not evenly spaced columns). This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
Example:

gf_list_height_25
This applies a 25px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_height_50
This applies a 50px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_height_75
This applies a 75px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_height_100
This applies a 100px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_height_125
This applies a 125px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
gf_list_height_150
This applies a 150px height value all multiple choice/checkbox items in that list. This can be useful to avoid "hanging floats" caused by list items of unequal height. This only applies to multiple choice/checkbox lists and work with any of the form label position settings.
Other Classes
gf_scroll_text
This converts a section break field into a box with a fixed height that will automatically show a scroll bar if there’s a large amount of text. This is useful if you’re wanting to show large amounts of content to the user, but don’t want to have to link to it or make the form very long to show it (Terms of Service Agreements, etc). This class only works on section breaks and works with any of the form label position settings.
Example:

gf_hide_ampm
This hides the am/pm selector in the time field- this only hides the field on the form, not in the form entry table. This works with any of the form label position settings.
gf_hide_charleft
This hides the characters left counter beneath paragraph text fields when using the maximum characters option. This works with any of the form label position settings.
Q & A
Can I use multiple classes on the same field?
Yes, you can use multiple classes together. Just separate each class name by a space. Note: This doesn't work for all of the styles, but many can be combined if they're applicable to the field type. For example, you may have a 2 column primary layout, and want to use 2 column list layouts within the columns.
Can I create my own classes?
Yes, the classes are added to the parent <li> element surrounding a field so you can define your own class name and add your own rules to your theme stylesheet based on that class name being added to the field.
Notes
You can also see an example of several of these classes applied in one form here.
One final note. As with any CSS rules, your particular theme CSS may override or supersede some of these styles. They've been tested in a variety of themes and work well, but you may have to make some adjustments to your theme styles for everything to work properly.

If you want to keep up-to-date with what's happening on the blog sign up for the Gravity Forms newsletter!

Thanks guys, this feature really makes it convenient to style your forms! 🙂
And my love affair with you guys continues... Sofa King awesome - thanks!
Just great.
Thank you! With quite a few long(ish) forms in place, this was the single most important update I needed. 🙂
THE BOMB!
Thanks!
PayPal beta out too?!?!? SANTA CAME EARLY THIS YEAR, and he is dressed in GREEN and BLACK 🙂
Thanks guys!
Will you ever be adding 4 and 5 col to the CSS like it was done for checkbox and radio buttons?
Nothing roadmapped at the moment, but it's not unlikely in the future.
Thank you
The training was very helpful and useful
Thanks guys ! It's great
I am trying to transform the text in the Single Line Text field, but unfortunately "text-transform:capitalize;" isn't working. Any solutions?
@Kokula Krishna Hari Kunasekaran What happens if you apply that CSS declaration when on the form preview page? Does it work properly?
This form is always best contact form
tnx. gravityforms team
Hi
How can I Disable a form field...?
For example I want to show all alternative of a field (radio button, check box, combo) but one of them is enable to choice.
explain each 3 state (radio button, check box, combo)
Thanks for your useful contents
You can easily use conditional logic to decide which fields to hide and when to show/hide them.
Hi,
I used conditional logic to load a JS script that loads an appointment widget from Paypal. However when using conditional logic it makes the widget think the area is too small to open the widget. When turning conditional logic off the JS widget loads just fine. Do you know how I can fix this issue?
Go ahead and toss in a support ticket and we'll see what we can find for you. Thanks!
Helpful ....
On the latest update I did for Gravity Forms, it moved the 2 text area fields under the address over. There is no class in the CSS. Trying to fix so it lines up with City. ANY IDEAS? http://aimh.landofyogg.com/share-your-story/
Can you update this post to include the 4 column CSS classes?
You can use the following CSS code to place a field in one of the 4 quarters:
gf_first_quarter
gf_second_quarter
gf_third_quarter
gf_fourth_quarter
Any way I could gray out the selections in a radio box that uses conditional logic instead of hiding them?
can you help me please?How to create 5 column?thanks...
Having problem with gravity form inheriting the style sheet of the template. How can I create a 'gf-noclass' css? Where do I put it and where do I place it in the Gravity Form? Other suggestions are welcomed!
Beautiful, this made my life very easy. Love you Gravity Forms.
Thanks guys! 🙂
No problem! 🙂
hello
Thank you
The training was very helpful and useful
hi
Thank you 😍😍
thanks a lot for this plugin
thanks kevin, this was perfect, i found what i was looking for PLUS a few more useful tricks. thanks again!!
This is exactly what I was looking for, thanks!
These are great, but what if I want to make a field "full width"? That seems like it should be easy to implement - how about a gf_full_width ready class?
Never mind - I see that I can just set the "Field Size" parameter to "Large"!
Thanks for this one, brilliant! 🙂
I'm trying to format a field on the left side with gf_left_half, with a conditional field appearing on the right using gf_right_half.
It works beautifully!
Problem is, when formatting the next line of fields in the same way, the bottom gf_left_half field is appearing in the gf_right_half where the conditional field will appear. When the condition for the field is present, the bottom gf_left_half goes back to its proper places.
Try adding an empty HTML field between the conditional field and the next gf_left_half field. That should prevent the field moving up when the conditional field is hidden.
Thank you Richard!
That stopped the fields from moving. It appears to add a wee bit of extra whitespace, but that's tolerable for now.
Thanks again
Can I create my own classes and how do I add them?
You can create your own custom styles. See the CSS Targeting Examples and Where to Put Your Custom CSS articles.
all work in WordPress .This form is always best contact form
tnx. gravityforms team
Thanks guys, this feature really makes it convenient to style your forms!
tnx.
My new form looks very professional, with these CSS classes. They adapt very well to responsive as well.
Thank you
Previously I have used so many contact forms, but you're the best. Thank you so much!!